<template>
  <div>
    <el-table :data="tableData" border style="width: 100%" stripe>
      <el-table-column prop="teacher" label="教师" />
      <el-table-column prop="name" label="课程名" />
      <el-table-column prop="number" label="课程编号"/>
<!--      ToDo: options是指教师提交的具体课程维护操作，分为增加、删除、修改-->
      <el-table-column prop="options" label="操作"/>
      <el-table-column prop="audit" label="审核" width="120px">
        <template #default="scope">
          <el-button type="text" @click="handlePass(scope.row)">通过</el-button>
          <el-popconfirm title="确定退回此课程的审核？" @confirm="handleReturn(scope.row.id)">
            <template #reference>
              <el-button type="danger">退回</el-button>
            </template>
          </el-popconfirm>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "CourseAudit",
  components:{
  },
  data(){
    return {
      form:{},
      tableData:[
        {
          name:1
        }
      ],
    }
  },
  methods:{

  }
}
</script>

<style scoped>

</style>